Download all Images :: WebExtension.ORG

您所在的位置:网站首页 简笔画 中班 Download all Images :: WebExtension.ORG

Download all Images :: WebExtension.ORG

#Download all Images :: WebExtension.ORG| 来源: 网络整理| 查看: 265

What is the purpose of the customs rules section on the options page and how do I use it?

The custom rules section allows you to define a JSON object to pre-validate all URLs based on the first matching key in the JSON object. The extension uses the keys to match the top-level URL (page URL) and the values to pre-validate each link that will be considered as a potential image link. This validation occurs before the internal validation and can significantly improve the search speed. If you frequently use a particular website, it is recommended to write a JSON matching condition for it to reduce the time the extension needs to validate all the links. For example, consider the task of catching a large screenshot of a page on the WebExtension.ORG host. The key in this case would be a regular expression that only matches WebExtension.ORG web hosting, such as add0n.com. The value would be a regular expression that only matches the large screenshot image, such as -big.png. So the entire JSON object looks like this:

{ "add0n\\.com": "-big\\.png" }

Note that you can have multiple values by making an array. Let’s catch 48X48 pixel image as well:

{ "add0n\\.com": ["-big\\.png", "48\\.png"] }

For this hosting, the images are available in the actual HTML document, so there is no need to parse destination HTML pages. We can set the deep search level to one and the output will be only two images. Note that when a filter matches the top URL, the “Statistics” section will display the total number of regular expressions limiting your search results.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3